import Redis from 'ioredis';

const redis = new Redis({
  host: process.env.REDIS_HOST || '127.0.0.1',
  port: 6379,
  password: '123456',
  db: 0,
  retryStrategy: (times) => {
    return Math.min(times * 500, 2000);
  },
});

export default redis;